<?php
session_start();
setcookie("session_id",session_id(),time()+3600*24*365*10,"/",".localhost.com");
$_SESSION['user_name'] = '梁山良民';
echo $_SESSION['user_name'];